package com.jwsoft.manager.common.enums;

/**
 * @Author chenzh
 * @Date 2023/2/14 17:37
 */
public enum IrsSyncTypeEnum {
    hj("1", "户籍"),
    fc("2", "房产"),
    cb("3", "参保"),
    jzz("4", "居住证"),
    wq("5", "网签合同"),
    qy("6", "企业"),
    csz("7", "出生证"),
    jhz("8", "结婚证"),
    cblx("9", "社保连续缴费"),
    ;

    private String type;
    private String name;

    IrsSyncTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static IrsSyncTypeEnum getByType(String type) {

        for (IrsSyncTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
